﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:Quellenverwaltung_Data_Source="clr-namespace:Quellenverwaltung.Data.Source"
	mc:Ignorable="d"
	x:Class="Quellenverwaltung.EditBook"
	x:Name="UserControl"
	xmlns:wpf="clr-namespace:Quellenverwaltung.WPF" Height="580.2">

	<UserControl.Resources>
		<Quellenverwaltung_Data_Source:Book x:Key="BookDataSource" d:IsDataSource="True"/>
	</UserControl.Resources>

<Grid x:Name="LayoutRoot" MinWidth="380" MaxWidth="380">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" MinWidth="380"/>
        </Grid.ColumnDefinitions>
        <StackPanel Margin="7.064,8,0,8" HorizontalAlignment="Left">
        	<Label x:Name="labelAddBook" Content="NEUES BUCH HINZUFÜGEN" FontSize="9.333" Foreground="#FF909090" HorizontalAlignment="Left" Width="155.473" Margin="0" RenderTransformOrigin="0.378,0.598"/>
        	<Grid x:Name="GridTitle">
        		<AdornerDecorator>
        			<TextBox x:Name="textTitle" TextWrapping="Wrap" Text="{Binding Title}" FontSize="18" FontFamily="./#Segoe UI" Padding="3,4,5,4" BorderThickness="1" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" Foreground="#FF00A3FF" Margin="45,8,8,9.6" Width="310">
        				<wpf:WatermarkService.Watermark>
        					<TextBlock FontSize="18" FontFamily="./#Segoe UI" Margin="-40,-5,0,0" Padding="0,0,0,0" Foreground="#FF00A3FF"><Run Text="Titel hinzufügen"/></TextBlock>
        				</wpf:WatermarkService.Watermark>
        			</TextBox>
        		</AdornerDecorator>
        		<Path x:Name="iconBookTitle" Data="F1M12.4722,26.6064C13.0362,26.7544,24.7222,29.8354,24.7222,29.8354C24.7222,29.8354,25.9152,30.3134,27.0452,29.0574C28.1752,27.8014,40.4062,14.2024,40.4062,14.2024C40.4062,14.2024,42.5192,12.1004,39.4342,11.3734C36.3492,10.6464,26.9182,8.3534,25.0002,7.9724C23.0822,7.5904,22.4152,8.4614,22.4152,8.4614L9.0702,23.2424C9.0702,23.2424,8.0002,24.0604,8.0002,25.0004C8.0002,25.9394,7.9872,28.6564,8.0002,30.2964C8.0132,31.9374,8.3402,32.7444,10.0892,33.2694C11.8382,33.7944,22.4502,36.7404,25.0002,37.5604C27.5512,38.3804,28.8642,37.9894,29.7452,36.8574C30.6262,35.7254,40.7592,22.4034,40.7592,22.4034C40.7592,22.4034,41.0002,21.7734,41.0002,20.9684L41.0002,18.5594C41.0002,19.2254,40.9842,16.9704,40.1652,17.0004C39.3462,17.0294,39.4672,17.0294,38.8512,17.0004C38.2362,16.9704,38.0462,17.5214,38.0392,17.9894C38.0322,18.4574,38.0262,20.7604,38.0262,20.7604C38.0262,20.7604,38.2992,21.2394,36.8042,23.0434C35.3082,24.8464,28.5552,33.0144,28.0972,33.3344C27.6402,33.6534,27.0412,34.4604,24.5492,33.8334C22.0582,33.2064,12.5212,30.8124,12.0602,30.6074C11.3422,30.2994,11.4462,29.3764,11.4462,29.3764L11.4832,27.5314C11.4832,27.5314,11.9082,26.4584,12.4722,26.6064" Fill="#FF00A3FF" Stretch="Fill" Width="28.72" HorizontalAlignment="Left" Margin="8,14,0,0" Height="26.122" VerticalAlignment="Top"/>
        	</Grid>
        	<Grid x:Name="GridAuthor">
				<Label x:Name="labelAuthor" Content="Author" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left" VerticalAlignment="Top"/>
				<AdornerDecorator x:Name="adornerAuthor" Margin="90,0,9.671,0" d:LayoutOverrides="Width">
					<TextBox x:Name="textAuthor" TextWrapping="Wrap" Text="{Binding AuthorNamesAsString}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="206" HorizontalAlignment="Left" ToolTip="e.g. &quot;Max Mustermann; Mustermann, Max&quot;" MinHeight="24">
						<wpf:WatermarkService.Watermark>
							<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Author hinzufügen"/></TextBlock>
						</wpf:WatermarkService.Watermark>
					</TextBox>
				</AdornerDecorator>
                <AdornerDecorator x:Name="adornerAuthorCompany" Margin="90,0,9.671,0" d:LayoutOverrides="Width" Visibility="Hidden">
                    <TextBox x:Name="textAuthorCompany" TextWrapping="Wrap" Text="{Binding AuthorCorporateAsString}" Margin="0" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="206" HorizontalAlignment="Left" ToolTip="e.g. &quot;Mustermann GmbH&quot;" MinHeight="24">
                        <wpf:WatermarkService.Watermark>
                            <TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Firmenname hinzufügen"/></TextBlock>
                        </wpf:WatermarkService.Watermark>
                    </TextBox>
                </AdornerDecorator>
                <CheckBox x:Name="AuthorIsCorporateCheckBox" Content="Firma" HorizontalAlignment="Left" Margin="305,5,0,3.2" Checked="CheckBox_Checked_1" Unchecked="CheckBox_Unchecked_1"/>
            </Grid>
        	<Grid x:Name="GridYear">
        		<Label x:Name="labelYear" Content="Jahr" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
        		<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textYear" TextWrapping="Wrap" Text="{Binding Year}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
        				<wpf:WatermarkService.Watermark>
        					<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Jahr hinzufügen"/></TextBlock>
        				</wpf:WatermarkService.Watermark>
        			</TextBox>
        		</AdornerDecorator>
        	</Grid>
        	<Grid x:Name="GridCity">
        		<Label x:Name="labelCity" Content="Ort" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
        		<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textCity" TextWrapping="Wrap" Text="{Binding City}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
        				<wpf:WatermarkService.Watermark>
        					<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Ort hinzufügen"/></TextBlock>
        				</wpf:WatermarkService.Watermark>
        			</TextBox>
        		</AdornerDecorator>
        	</Grid>
        	<Grid x:Name="GridPublisher">
        		<Label x:Name="labelPublisher" Content="Verlag" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
        		<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textPublisher" TextWrapping="Wrap" Text="{Binding Publisher}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
        				<wpf:WatermarkService.Watermark>
        					<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Verlag hinzufügen"/></TextBlock>
        				</wpf:WatermarkService.Watermark>
        			</TextBox>
        		</AdornerDecorator>
        	</Grid>
        	<Grid x:Name="GridEdition">
        		<Label x:Name="labelEdition" Content="Auflage" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
        		<AdornerDecorator Margin="90,1,9.671,1" d:LayoutOverrides="Width">
<TextBox x:Name="textEdition" TextWrapping="Wrap" Text="{Binding Edition}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
        				<wpf:WatermarkService.Watermark>
        					<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Auflage hinzufügen"/></TextBlock>
        				</wpf:WatermarkService.Watermark>
        			</TextBox>
        		</AdornerDecorator>
        	</Grid>
        	<Grid x:Name="GridStandardNumber">
        		<Label x:Name="labelStandardNumber" Content="ISBN/ ISSN" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
        		<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textStandardNumber" TextWrapping="Wrap" Text="{Binding StandardNumber}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
        				<wpf:WatermarkService.Watermark>
        					<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Standardnummer hinzufügen"/></TextBlock>
        				</wpf:WatermarkService.Watermark>
        			</TextBox>
        		</AdornerDecorator>
        	</Grid>
			<Expander Header="Weitere Felder anzeigen" Margin="0,10,0,0">
				<StackPanel>
					<Grid x:Name="GridEditor" Margin="0,0,-2,0">
						<Label x:Name="labelEditor" Content="Herausgeber" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
						<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textEditor" TextWrapping="Wrap" Text="{Binding EditorNamesAsString}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
								<wpf:WatermarkService.Watermark>
									<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Herausgeber hinzufügen"/></TextBlock>
								</wpf:WatermarkService.Watermark>
							</TextBox>
						</AdornerDecorator>
					</Grid>
					<Grid x:Name="GridVolume" Width="362.958">
						<Label x:Name="labelVolume" Content="Band" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
						<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textVolume" TextWrapping="Wrap" Text="{Binding Volume}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
								<wpf:WatermarkService.Watermark>
									<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Band hinzufügen"/></TextBlock>
								</wpf:WatermarkService.Watermark>
							</TextBox>
						</AdornerDecorator>
					</Grid>
					<Grid x:Name="GridNumberVolumes" Width="362.958" Margin="0,0,-2,0">
						<Label x:Name="labelNumberVolumes" Content="Anzahl Bände" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
						<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textNumberVolumes" TextWrapping="Wrap" Text="{Binding NumberVolumes}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
								<wpf:WatermarkService.Watermark>
									<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Band hinzufügen"/></TextBlock>
								</wpf:WatermarkService.Watermark>
							</TextBox>
						</AdornerDecorator>
					</Grid>
					<Grid x:Name="GridPages" Width="362.958" Margin="0,0,-2,0">
						<Label x:Name="labelPages" Content="Seiten" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
						<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textPages" TextWrapping="Wrap" Text="{Binding Pages}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
								<wpf:WatermarkService.Watermark>
									<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Anzahl der Bände hinzufügen"/></TextBlock>
								</wpf:WatermarkService.Watermark>
							</TextBox>
						</AdornerDecorator>
					</Grid>
					<Grid x:Name="GridShortTitle" Width="362.958" Margin="0,0,-2,0">
						<Label x:Name="labelShortTitle" Content="Kurztitel" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
						<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textShortTitle" TextWrapping="Wrap" Text="{Binding ShortTitle}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
								<wpf:WatermarkService.Watermark>
									<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Kurztitel hinzufügen"/></TextBlock>
								</wpf:WatermarkService.Watermark>
							</TextBox>
						</AdornerDecorator>
					</Grid>
					<Grid x:Name="GridCountryRegion" Width="362.958" Margin="0,0,-2,0">
						<Label x:Name="labelCountryRegion" Content="Land" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
						<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textCountryRegion" TextWrapping="Wrap" Text="{Binding CountryRegion}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
								<wpf:WatermarkService.Watermark>
									<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Land/ Region hinzufügen"/></TextBlock>
								</wpf:WatermarkService.Watermark>
							</TextBox>
						</AdornerDecorator>
					</Grid>
					<Grid x:Name="GridStateProvince" Width="362.958" Margin="0,0,-2,0">
						<Label x:Name="labelStateProvince" Content="Bundesland" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
						<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width" HorizontalAlignment="Left">
<TextBox x:Name="textStateProvince" TextWrapping="Wrap" Text="{Binding StateProvince}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
								<wpf:WatermarkService.Watermark>
									<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Bundesland/ Kanton  hinzufügen"/></TextBlock>
								</wpf:WatermarkService.Watermark>
							</TextBox>
						</AdornerDecorator>
					</Grid>
					<Grid x:Name="GridTranslator" Margin="0,0,-2,0">
						<Label x:Name="labelTranslator" Content="Übersetzer" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
						<AdornerDecorator Margin="90,0,9.671,0" d:LayoutOverrides="Width">
<TextBox x:Name="textTranslator" TextWrapping="Wrap" Text="{Binding TranslatorNamesAsString}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
								<wpf:WatermarkService.Watermark>
									<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Übersetzer hinzufügen"/></TextBlock>
								</wpf:WatermarkService.Watermark>
							</TextBox>
						</AdornerDecorator>
					</Grid>
					<Grid x:Name="GridComments" Width="362.958">
						<Label x:Name="labelComments" Content="Kommentar" VerticalAlignment="Top" Width="90" Foreground="#FF828282" Padding="5,7,5,3" Height="24" HorizontalAlignment="Left"/>
						<AdornerDecorator Margin="90,0,9.471,0" d:LayoutOverrides="Width">
<TextBox x:Name="textComments" TextWrapping="Wrap" Text="{Binding Comments}" Margin="0,0,0,2" Padding="4,3,1,2" BorderBrush="#FFC2C2C2" BorderThickness="1" VerticalAlignment="Top" MouseEnter="input_MouseEnter" MouseLeave="input_MouseLeave" VerticalContentAlignment="Center" Background="White" Width="260" HorizontalAlignment="Left" MinHeight="24" >
								<wpf:WatermarkService.Watermark>
									<TextBlock FontSize="8pt" FontFamily="./#Segoe UI" Margin="4,3,0,0" Foreground="#FFAEAEAE"><Run Text="Kommentar hinzufügen"/></TextBlock>
								</wpf:WatermarkService.Watermark>
							</TextBox>
						</AdornerDecorator>
					</Grid>
				</StackPanel>
			</Expander>
			<Grid x:Name="GridButtons" Height="46">
				<Button x:Name="ButtonAddSource" Content="Quelle hinzufügen" HorizontalAlignment="Right" Margin="0,14,197.892,5" Width="111.8" Click="Button_Click_1"/>
				<Button x:Name="ButtonAddSourrceAndCite" Content="Quelle hinzufügen und zitieren" Margin="0,14,8,5" HorizontalAlignment="Right" Width="177.892" Click="ButtonAddSourrceAndCite_Click"/>
			</Grid>
		</StackPanel>
	</Grid>
</UserControl>